//---------------------------------------------------------------------------

#ifndef vSAjoutAdresseH
#define vSAjoutAdresseH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Buttons.hpp>

#include "WebHelp.h"
#include <Graphics.hpp>
#include "CComboBx.h"
#include "CEdit.h"
//---------------------------------------------------------------------------
class TAjoutAdresse : public TForm
{
    __published:	// Composants gérés par l'EDI
        TPanel *pBouton;
        TBitBtn *bbOk;
        TBitBtn *bbAnnuler;
        TBitBtn *bbConsulter;
    TLabel *lRefWebHelp;
    TPanel *pRefUnique;
    TLabel *lLogiciel;
    TLabel *lVersion;
    TLabel *lReference;
    TLabel *lDesignation;
    TLabel *lPageWeb;
    TLabel *lPageAttente;
    TMemo *mPageWeb;
    CEdit *eLogiciel;
    CEdit *eVersion;
    CEdit *eDesignation;
    CComboBox *cbRef;
    CComboBox *cbAttente;
        void __fastcall cbRefChange(TObject *Sender);
        void __fastcall bbConsulterClick(TObject *Sender);
        void __fastcall bbOkClick(TObject *Sender);
        void __fastcall mPageWebChange(TObject *Sender);

    private:	// Déclarations utilisateur
        TdmWebHelp * dmWebHelp;
        int m_nLogiciel;
        int m_nVersion;

    private:
        AnsiString __fastcall MettreMajusculePrCar(const AnsiString &asText);
        bool __fastcall VerifierRef(const AnsiString &asRef);
        void __fastcall GetPageDAttente(const AnsiString &asRef);
        void __fastcall Supprimer(const AnsiString &asRef);
        bool __fastcall VerifierRefAdresse( void );


    public:		// Déclarations utilisateur
        __fastcall TAjoutAdresse( const int &nLogiciel,
                                  const int &nVersion,
                                  const AnsiString &asLogiciel,
                                  const AnsiString &asVersion,
                                  const AnsiString &asRef,
                                  TComponent* Owner);
        __fastcall ~TAjoutAdresse();
};
//---------------------------------------------------------------------------
#endif
